class ClassDemo1 
{
	public static void main(String[] args) 
	{
		int x1=Integer.parseInt(args[0]);
    	int x2=Integer.parseInt(args[1]);
		int x3=Integer.parseInt(args[2]);
	
		int sum=Arith.calculation(x1,x2);
		System.out.println("Sum = "+sum);

		double avg=Arith.calculation(x1,x2,x3);
		System.out.println("Average = "+avg);
	}
}

class Arith
{
	public static int calculation(int n1, int n2)
	{
       int t=n1+n2;
	   return t;
	}
	public static double calculation(int n1, int n2, int n3)
	{
       double d = (double)(n1+n2+n3)/3;
	   return d;
	}
}
